package com.cheng.pojo;

public class User {
    private int id; //id
    private String name; //姓名
    private String pwd; //密码

    //构造,有参,无参
    //set/get
    //toString()
//    public User(){};


    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public User(int id, String name, String pwd) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
